package com.nuoniu.sibanyun.entity.erp.barcode;

import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import com.nuoniu.sibanyun.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 条码出入库
 * </p>
 *
 * @author 白强
 * @since 2021-11-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bc_barcode_in_out")
@ApiModel(value="ErpBarcodeInOut对象", description="条码出入库")
public class ErpBarcodeInOut extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "租户ID")
    @TableField("company_id")
    private Integer companyId;

    @ApiModelProperty(value = "账套id")
    @TableField("account_id")
    private Integer accountId;

    @ApiModelProperty(value = "条码")
    @TableField("barcode")
    private String barcode;

    @ApiModelProperty(value = "来源明细ID")
    @TableField("source_detail_id")
    private Integer sourceDetailId;

    @ApiModelProperty(value = "来源单id")
    @TableField("source_voucher_id")
    private Integer sourceVoucherId;

    @ApiModelProperty(value = "来源单据")
    @TableField("source_voucher_type")
    private String sourceVoucherType;



    @ApiModelProperty(value = "仓库ID")
    @TableField("warehouse_id")
    private Integer warehouseId;

    @ApiModelProperty(value = "仓库名称")
    @TableField("warehouse_name")
    private String warehouseName;

    @ApiModelProperty(value = "仓库编码")
    @TableField("warehouse_code")
    private String warehouseCode;

    @ApiModelProperty(value = "入库时间")
    @TableField("in_time")
    private LocalDateTime inTime;

    @ApiModelProperty(value = "入库人ID")
    @TableField("in_user_id")
    private Integer inUserId;

    @ApiModelProperty(value = "入库人姓名")
    @TableField("in_user_name")
    private String inUserName;

    @ApiModelProperty(value = "出库时间")
    @TableField("out_time")
    private LocalDateTime outTime;

    @ApiModelProperty(value = "出库人ID")
    @TableField("out_user_id")
    private Integer outUserId;

    @ApiModelProperty(value = "出库人姓名")
    @TableField("out_user_name")
    private String outUserName;

    @ApiModelProperty(value = "相同条码入库次数")
    @TableField("barcode_times")
    private Integer barcodeTimes;

    @ApiModelProperty(value = "是否最新条码记录")
    @TableField("is_last")
    private Boolean isLast;




}
